package com.lcc.pojo;

import java.io.Serializable;

/**
 * @author 廖聪聪
 * @version 1.0
 * 创建时间 2020/7/23 13:54
 */

public class PageBean implements Serializable {
	private String asd;
	private int cp;
	private int totalPage;
	private int ps=3;
	private int totalsize;
	public int getCp() {
		return cp;
	}

	public void setCp(int cp) {
		this.cp = cp;
	}

	public int getTotalPage() {
		if (getTotalsize()%getPs()==0){
			totalPage=totalsize/ps;
		}else {
			totalPage=totalsize/ps+1;
		}
		return totalPage;
	}
	Query query = new Query();

	public Query getQuery() {
		return query;
	}

	public void setQuery(Query query) {
		this.query = query;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getPs() {
		return ps;
	}

	public void setPs(int ps) {
		this.ps = ps;
	}

	public int getTotalsize() {
		return totalsize;
	}

	public void setTotalsize(int totalsize) {
		this.totalsize = totalsize;
	}

}
